package com.hall.items.aggr;

import dml.game.weapon.aggr.WeaponArchive;
import dml.game.weapon.aggr.WeaponProperties;

public class MyWeaponArchive implements WeaponArchive<MyWeapon> {

	private int id;

	private String code;

	private MyEquipType equipType;

	public MyWeaponArchive() {
	}

	@Override
	public Object getId() {
		return id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public MyEquipType getEquipType() {
		return equipType;
	}

	public void setEquipType(MyEquipType equipType) {
		this.equipType = equipType;
	}

	@Override
	public void setId(Object id) {
		this.id = (int) id;
	}

	@Override
	public MyWeapon createPlayerWeapon(WeaponProperties properties) {
		MyWeapon weapon = new MyWeapon(this);
		weapon.setCode(code);
		return weapon;
	}

}
